<?php
include ("../conectar_my.php"); 
session_start();
if ($_SESSION['S_USUARIO']=="") {
	echo "<font face='Tahoma' size='2' color='red'><b>SESION CERRADA POR EL USUARIO!</b></font>";
	exit;
}
$carrera=$_GET["variable1"];
$curso=$_GET["variable2"];
$codasign=$_GET["variable3"];
$cadena_busqueda=$_GET["cadena_busqueda"];

$query="SELECT * FROM  codasign WHERE codcarsec='$carrera' and codcurso='$curso' and codasign='$codasign'";

$rs_query=mysql_query($query);

?>

<html>
	<head>
		<title></title>
		
		<link href="../estilos/estilos.css" type="text/css" rel="stylesheet">



		<script language="javascript">
		
		var cursor;
		if (document.all) {
		// Está utilizando EXPLORER
		cursor='hand';
		} else {
		// Está utilizando MOZILLA/NETSCAPE
		cursor='pointer';
		}
		
		function aceptar(variable1,variable2,variable3) {
			location.href="guardar.php?variable1=" + variable1 + "&variable2=" + variable2 + "&variable3=" + variable3 + "&accion=baja" + "&cadena_busqueda=<?php echo $cadena_busqueda?>";
		}
		
		function cancelar() {
			location.href="index.php?cadena_busqueda=<?php echo $cadena_busqueda?>";
		}
		
		</script>
	</head>
	<body>
		<div id="pagina">
			<div id="zonaContenido">
				<div align="center">
				<div id="tituloForm" class="fuente9Resaltado">ELIMINAR DATOS </div>
				<div id="frmBusqueda">
		
			  <table class="fuente8" width="98%" cellspacing=0 cellpadding=3 border=0>
						<tr>
						  <td>&nbsp;</td>
						  <td colspan="2">&nbsp;</td>
			    </tr>
						<tr>
							<td width="15%">Carrera</td>
							<td width="85%" colspan="2"><?php echo $carrera;?></td>
					    </tr>
						<tr>
						  <td>Curso/Semestre</td>
						  <td colspan="2"><?php echo $curso;?></td>
			    </tr>
						<tr>
						  <td>CodAsignatura</td>
						  <td colspan="2"><?php echo $codasign;?></td>
			    </tr>
						<tr>
							<td width="15%">Descripcion</td>
						    <td width="85%" colspan="2"><?php echo $descripcion=strtoupper(mysql_result($rs_query,0,"descrip"))?></td>
					    </tr>
						<tr>
						  <td>Relacion</td>
						  <td colspan="2"><?php echo $relacion=strtoupper(mysql_result($rs_query,0,"relacion"))?></td>
			    </tr>
						<tr>
						  <td>&nbsp;</td>
						  <td colspan="2">&nbsp;</td>
			    </tr>
						<tr>
						  <td>&nbsp;</td>
						  <td colspan="2">&nbsp;</td>
			    </tr>
  					</table>
			  </div>
				<div id="botonBusqueda">
					<img src="../img/botonaceptar.jpg" width="85" height="22" onClick="aceptar('<?php echo $carrera;?>','<?php echo $curso;?>','<?php echo $codasign;?>')" border="1" onMouseOver="style.cursor=cursor">
					<img src="../img/botoncancelar.jpg" width="85" height="22" onClick="cancelar()" border="1" onMouseOver="style.cursor=cursor">

			  </div>

			  </div>
			 </div>
		  </div>
		</div>
	</body>
</html>
